﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class BaiduInfo
    {
        /// <summary>
        /// 状态编码
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 结果
        /// </summary>
        public List<Result> result { get; set; }

        /// <summary>
        /// 信息
        /// </summary>
        public string message { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 距离
        /// </summary>
        public Distance distance { get; set; }
        /// <summary>
        /// 分钟
        /// </summary>
        public Duration duration { get; set; }
    }

    public class Distance
    {
        /// <summary>
        /// 距离 例如 19.4公里
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 距离 例如 19367
        /// </summary>
        public string value { get; set; }
    }

    public class Duration
    {
        /// <summary>
        /// 时间 例如 32分钟
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 距离 例如 19367
        /// </summary>
        public string value { get; set; }
    }
}
